﻿using System.Web.Mvc;
using Uber.Core.Model;
using Uber.Core.Service;

namespace Uber.WebUI.Controllers
{
    [Authorize(Roles = The.Admin)]
    public class GoldBuyController : Controller
    {
        private readonly IGoldBuys s;

        public GoldBuyController(IGoldBuys s)
        {
            this.s = s;
        }

        public ActionResult Index(int? page)
        {
            return View(s.GetPage(page ?? 1, 10));
        }
    }
}